import BaseListApp from '../BaseListApp';
import EventEmitter from '@/lib/core/EventEmitter';

export default abstract class BaseListTabLayoutApp extends BaseListApp {

    public initApp() {
        super.initApp();
        // 监听返回按钮
        EventEmitter.onSystem({ name: 'navitembtn' }, (ret) => {
            if (ret.type !== 'left' || ret.index !== 0) {
                return;
            }
            this.$apicloud.closeWin();
        });
    }
}
